package com.wfs.loop;

/**
 * 了解几种死循环写法
 */
public class DeadForDemo4 {
    public static void main(String[] args) {
        test1();
    }
    static void test1(){
        for(;;){
            System.out.println("hello");
        }
    }
    static void test2(){
        while(true){
            System.out.println("hello");
        }
    }
    static void test3(){
        do{
            System.out.println("hello");
        }while (true);
    }
}
